Skip to content

Conversation

@jxie-1
Copy link
Contributor

@jxie-1 jxie-1 commented Nov 10, 2025

Check the relocating node id when finding the source for reshard split recovery. Not sure if we should default to currentNodeId if relocatingNodeId exists but the node is unknown

@elasticsearchmachine elasticsearchmachine added v9.3.0 serverless-linked Added by automation, don't add manually labels Nov 10, 2025
@jxie-1 jxie-1 force-pushed the reshard_relocate_source branch 2 times, most recently from ea848f2 to fb03765 Compare November 14, 2025 16:31
@jxie-1 jxie-1 force-pushed the reshard_relocate_source branch from fb03765 to f7fea19 Compare November 14, 2025 16:54
@jxie-1 jxie-1 marked this pull request as ready for review November 14, 2025 17:21
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Nov 14, 2025
@jxie-1 jxie-1 added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. Team:Distributed Indexing Meta label for Distributed Indexing team and removed needs:triage Requires assignment of a team area label labels Nov 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

sourceShardRouting.relocatingNodeId()
);
}
return sourceNode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we explicitly return null here and below? It's much easier to read.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea sounds good

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we exercise this with some deterministic test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, will add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >non-issue serverless-linked Added by automation, don't add manually Team:Distributed Indexing Meta label for Distributed Indexing team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants